package com.gigi.mapper.manual;

import com.gigi.entity.BlogShiqinEntity;
import com.gigi.model.BlogDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BlogManualMapper {

    List<BlogDO> hot5();

    List<BlogDO> recommend(@Param("typeId") Long typeId, @Param("tagId") List<String> tagId,
                                     @Param("startIndex") Integer startIndex,
                                     @Param("pageSize") Integer pageSize);

    int recommendCount(@Param("typeId") Long typeId, @Param("tagId") List<String> tagId);

    List<BlogDO> list(@Param("typeId") Long typeId, @Param("tagId") Long tagId, @Param("userId") Long userId,
                                @Param("keyWord") String keyWord,
                                @Param("startIndex") Integer startIndex,
                                @Param("pageSize") Integer pageSize);

    int listCount(@Param("typeId") Long typeId, @Param("tagId") Long tagId, @Param("userId") Long userId,
                                @Param("keyWord") String keyWord);

}
